package com.virtual.rerijaapps.pet.utils;

import android.app.Activity;
import android.view.inputmethod.InputMethodManager;

public class KeyboardHelper 
{
	
	public static void hideKeyboard( Activity activity )
	{
		InputMethodManager inputMethodManager = ( InputMethodManager ) activity.getSystemService( Activity.INPUT_METHOD_SERVICE );
	    if( null != inputMethodManager ) 
    	{
    		inputMethodManager.hideSoftInputFromWindow( activity.getCurrentFocus().getWindowToken(), 0 );
    	}
	}
	
}
